package org.dtrd.modules.shop.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.shop.entity.po.DtrdEntShcRdOrderJoinProduct;
import java.util.Date;

/**
 * <p>
 * 金蝶商品与订单的关联关系表
 * </p>
 *
 * @author sun
 * @since 2022-07-23
 */
@Getter
@Setter
@ApiModel(value = "金蝶商品与订单的关联关系表列表信息", description = "金蝶商品与订单的关联关系表")
public class OrderJoinProductListInfo {

    private Integer dataId;

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("商品id")
    private String productId;

    @ApiModelProperty("商品分类")
    private Integer productCategory;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品价格")
    private Integer productPrice;

    @ApiModelProperty("商品折扣价格")
    private Integer productDiscountPrice;

    @ApiModelProperty("商品对应服务包id")
    private Integer productServiceId;

    @ApiModelProperty("商品数量")
    private Integer productNum;



    public OrderJoinProductListInfo (DtrdEntShcRdOrderJoinProduct po) {
        dataId = po.getDataId();
        orderId = po.getOrderId();
        productId = po.getProductId();
        productCategory = po.getProductCategory();
        productName = po.getProductName();
        productPrice = po.getProductPrice();
        productDiscountPrice = po.getProductDiscountPrice();
        productServiceId = po.getProductServiceId();
        productNum = po.getProductNum();
    }
}
